package com.franklin.java.api.psi.comment;

import com.franklin.plugins.common.utils.ReflectionUtils;
import com.intellij.psi.PsiElement;

import java.util.HashMap;
import java.util.Map;

/**
 * @author Franklin
 * @since 2021/9/2 14:46
 */
abstract class AbstractPsiCommentResolver<T extends PsiElement> implements PsiCommentResolver<T> {

    protected Map<Class<?>,PsiCommentResolver<? extends PsiElement>> typeResolverMap = new HashMap<>();

    protected Class clazz;

    public Class getClazz() {
        return clazz;
    }

    public AbstractPsiCommentResolver() {
        this.clazz = ReflectionUtils.getSuperClassGenericType(this.getClass(),0);
    }
}
